package GA;

import GA.population.GAPopuBuilder;
import algorithm.Alg;
import algorithm.AlgFactory;
import abstractGA.popu.PopuBuilder;

/**
 * 带学习机制GA算法工厂类
 * @author nyc
 *
 */
public class GAFactory implements AlgFactory {
	@Override
	//构建带学习机制GA算法类对象
	public Alg createAlg() {
		Alg alg=null;
		PopuBuilder popuBld = new GAPopuBuilder();
		alg= new GAAlg(popuBld);
		return alg;
	}
}
